package core.validate.rules;

import core.validate.FileRule;
import core.validate.RuleTest;

import java.util.List;

public enum FileType {
    TEST, EMPTY;
    public void apply(FileRule rule, List<Object> action, String message) {
        switch (this) {
            case TEST -> rule.test((RuleTest) action.get(0), message);
        }
    }
}
